//
//  UIView+YJDrawCategory.h
//  BezierDemo
//
//  Created by 申元江 on 2018/12/27.
//  Copyright © 2018 yuanjiang. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (YJDrawCategory)

///draw line in view
-(void)yj_drawLineFromPoint:(CGPoint)fPoint
                    toPoint:(CGPoint)tpoint
                  lineColor:(UIColor *)color
                 lineHeight:(CGFloat)height;

/// draw dash line in view type: 0-cube, 1-round
-(void)yj_drawDashLineFrompoint:(CGPoint)fPoint
                        toPoint:(CGPoint)tPoint
                      lineColor:(UIColor *)color
                      lineWidth:(CGFloat)width
                     lineHeight:(CGFloat)height
                      lineSpace:(CGFloat)space
                       lineType:(NSInteger)type;

///draw pentagram in view rate： 0.3 ~ 1.1
-(void)yj_drawPentagram:(CGPoint)center
                 radius:(CGFloat)radius
                  color:(UIColor *)color
                   rate:(CGFloat)rate;

///draw rect. type: 0 - cube, 1-round
-(void)yj_drawRect:(CGRect)rect
         lineColor:(UIColor *)color
         lineWidth:(CGFloat)width
        lineHeight:(CGFloat)height
          lineType:(NSInteger)type
            isDash:(BOOL)dash
         lineSpace:(CGFloat)space;

@end

NS_ASSUME_NONNULL_END
